home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / comm / oh10a7.zip / CGI-BIN / MINIMAL.PL < prev    next >
Text File  |  1996-05-17  |  769b  |  28 lines

  1.  
  2.  
  3. #!/usr/local/bin/perl 
  4.  
  5. # minimal.cgi
  6. # Copyright (C) 1995 Steven E. Brenner  
  7. # $Header: /cys/people/brenner/http/docs/web/RCS/minimal.cgi,v 1.3 1996/03/29 21:48:08 brenner Exp $
  8.  
  9. # This is the minimalist comboform script to demonstrate the use of 
  10. # the cgi-lib.pl library -- it needs only 6 orindary-length lines
  11. # --
  12. # This is NOT intended to be a "typical" script
  13. # Note that it does not produce a valid HTML page (it is missing <head> etc.)
  14. # Most importantly, the <form> key should normally have parameters  like
  15. #  <form method=POST action="minimal.cgi">
  16.  
  17. require "cgi-lib.pl";
  18. if (&ReadParse) {
  19.    print &PrintHeader, &PrintVariables;
  20. } else {
  21.   print &PrintHeader,'<form><input type="submit">Data: <input name="myfield">';
  22. }
  23.  
  24.  
  25.  
  26.  
  27.  
  28.